home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / mmailp.idb / usr / lib / Zmail / bin / sh-versions / echo-n.z / echo-n
Encoding:
Text File  |  1997-01-22  |  767 b   |  25 lines

  1. :
  2. # This file Copyright (c) 1992 Z-Code Software Corp.
  3. # Permission to use, copy, modify, and distribute this material
  4. # for any purpose and without fee is hereby granted, provided
  5. # that the above copyright notice and this permission notice
  6. # appear in all copies, and that the name of Z-Code Software not
  7. # be used in advertising or publicity pertaining to this
  8. # material without the specific, prior written permission
  9. # of an authorized representative of Z-Code.  Z-CODE SOFTWARE
  10. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
  11. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS",
  12. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  13.  
  14. c=`echo "xyzzy\c" | sed 's/[^c]//g'`
  15. if /bin/test -z "$c"
  16. then
  17.     n=''
  18.     c='\c'
  19. else
  20.     n='-n'
  21.     c=''
  22. fi
  23.  
  24. echo $n "$@"$c
  25.